package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.QueryAdversitementDto;
import com.huaxiafinance.management.model.YfqAdvertisement;

import java.util.List;

public interface YfqAdvertisementMapper {
    int deleteByPrimaryKey(String id);

    int insert(YfqAdvertisement record);

    int insertSelective(YfqAdvertisement record);

    YfqAdvertisement selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(YfqAdvertisement record);

    int updateByPrimaryKey(YfqAdvertisement record);

    /**
     * 根据条件查询广告列表
     * @return
     */
    List<YfqAdvertisement> selectYfqAdversitement(QueryAdversitementDto dto);

    YfqAdvertisement selectSort();

    int count(Integer locationType);
}